import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/useraudit',
    name: 'useraudit',
    component: () => import('../views/UserAudit.vue')
  },
  {
    path: '/provideraudit',
    name: 'provideraudit',
    component: () => import('../views/ProviderAudit.vue')
  },
  {
    path: '/poAuditWebSocket',
    name: 'poAuditWebSocket',
    component: () => import('../views/PoAuditWebSocket.vue')
  },
  {
    path: '/providerOrderWebSocket',
    name: 'providerOrderWebSocket',
    component: () => import('../views/ProviderOrderWebSocket.vue')
  },
  {
    path: '/userFreezeWebSocket',
    name: 'userFreezeWebSocket',
    component: () => import('../views/UserFreezeWebSocket.vue')
  },
  {
    path: '/orderCopy',
    name: 'orderCopy',
    component: () => import('../views/UserOrderCopy.vue')
  },
  {
    path: '/buyMessage',
    name: 'buyMessage',
    component: () => import('../views/BuyMessage.vue')
  },
  {
    path: '/buyMessageOffer',
    name: 'buyMessageOffer',
    component: () => import('../views/BuyMessageOffer.vue')
  },
  {
    path: '/FrontRechargeRecord2',
    name: 'FrontRechargeRecord2',
    component: () => import('../views/FrontRechargeRecord2.vue')
  },
  {
    path: '/UserOrder',
    name: 'UserOrder',
    component: () => import('../views/UserOrder.vue')
  },
  {
    path: '/SupplierreturnSell',
    name: 'SupplierreturnSell',
    component: () => import('../views/SupplierreturnSell.vue')
  },
  {
    path: '/Supplierreturn',
    name: 'Supplierreturn',
    component: () => import('../views/Supplierreturn.vue')
  },
  {
    path: '/Refunds',
    name: 'Refunds',
    component: () => import('../views/Refunds.vue')
  },
  {
    path: '/Ssalegoodsdecision',
    name: 'Ssalegoodsdecision',
    component: () => import('../views/Ssalegoodsdecision.vue')
  },
  {
    path: '/Sslegoods',
    name: 'Sslegoods',
    component: () => import('../views/Sslegoods.vue')
  }
]

const router = new VueRouter({
  // mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
